@extends('layouts.default')  
@section('content')
<div class="box primary">
    <header>
        <div class="icons">
            <i class="fa fa-edit"></i>
        </div>
        <h5>{{Lang::get('messages.vehicle_spec')}}</h5>
        <div class="toolbar">
            <nav style="padding: 8px;">
                <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                    <i class="fa fa-minus"></i>
                </a> 
                <a href="javascript:;" class="btn btn-default btn-xs full-box">
                    <i class="fa fa-expand"></i>
                </a> 
                <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                    <i class="fa fa-times"></i>
                </a> 
            </nav>
        </div>
    </header>
    <div id="div-1" class="body">
        {{ Form::open(array('url' => 'car', 'class'=>'form-horizontal','id'=>'form-validate')) }} 
        <div class="form-group">
            {{ Form::label('desc', Lang::get('messages.description').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('desc','', array(
                                'placeholder' =>Lang::get('messages.make_and_model'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>            
        <div class="form-group">
            {{ Form::label('make', Lang::get('messages.make').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('make',Input::old('make'), array(
                                'placeholder' =>Lang::get('messages.make_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div> 
        <div class="form-group">
            {{ Form::label('model', Lang::get('messages.model').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('model',Input::old('model'), array(
                                'placeholder' =>Lang::get('messages.model_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('license', Lang::get('messages.license').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('license', Input::old('license'),array(
                                'placeholder' =>Lang::get('messages.license_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('class', Lang::get('messages.class').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::select('class',$classes, Input::old('class'), array(
                                'placeholder' =>Lang::get('messages.class_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('milage',Lang::get('messages.milage').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::input('number', 'milage',Input::old('milage'),array(
                                'placeholder' =>Lang::get('messages.milage_of_vehicle'),
                                'class' => 'form-control'))
                }}       
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('year', Lang::get('messages.year').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::selectYear('year', 1990, 2020, Input::old('year'), array(
                                'placeholder' =>Lang::get('messages.year_of_model'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>         
        <div class="form-group">
            {{ Form::label('color', Lang::get('messages.color').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::select('color', $color, Input::old('color'), array(
                                'placeholder' =>Lang::get('messages.color_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('vin', Lang::get('messages.vin').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('vin', Input::old('vin'), array(
                                'placeholder' =>Lang::get('messages.vin_of_vehicle'),
                                'class' => 'form-control')) 
                }}
            </div>
        </div>
        <div  class="form-group" >
            {{ Form::label('fuel', Lang::get('messages.engine').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6 slider" style="width: 40%; left:25px;text-align: right;"><br/>
                <div class="slider-div"></div>
                {{ Form::text('fuel', Input::old('fuel'), array(
                                'style' => 'border:0; color:blue; width: 10%; font-weight:bold;',
                                'class' => 'fuel')) 
                }}                           
            </div>                                
        </div>
        <div class="form-group">
            {{ Form::label('fueltype', Lang::get('messages.fuel_type').'*',array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::select('fueltype', array(
                                '' => '',
                                'Diesel' => Lang::get('messages.diesel'), 
                                'Petrol' => Lang::get('messages.petrol')),
                        Input::old('fueltype'), array(
                                'class' => 'form-control',
                                'placeholder' => Lang::get('messages.fuel_type'))) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('trans', Lang::get('messages.transmission').'*',array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::select('trans', array(
                                '' => '',
                                'Automatic' => Lang::get('messages.automatic'), 
                                'Manual' => Lang::get('messages.manual')),
                        Input::old('trans'), array(
                                'class' => 'form-control',
                                'placeholder' =>Lang::get('messages.transmission_of_vehicle'))) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('status', Lang::get('messages.status').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::select('status', array(
                                '' => '',
                                '1' => Lang::get('messages.active'), 
                                '0' => Lang::get('messages.not_active')),
                        Input::old('status'), array(
                                'class' => 'form-control',
                                'placeholder' => Lang::get('messages.status_of_vehicle'))) 
                }}
            </div>
        </div>   

        <div class="form-group">
            {{ Form::label('nr_people', Lang::get('messages.nr_people').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::selectRange('nr_people', 2, 10, Input::old('nr_people'), array(
                                'class' => 'form-control',
                                'placeholder' =>Lang::get('messages.nr_people_of_vehicle'),
                                ));
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('nr_suitcase', Lang::get('messages.nr_suitcase').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::selectRange('nr_suitcase', 1, 4, Input::old('nr_suitcase'), array(
                                'class' => 'form-control',
                                'placeholder' =>Lang::get('messages.nr_suitcase_of_vehicle')));
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('nr_doors', Lang::get('messages.nr_doors').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::selectRange('nr_doors', 2, 4, Input::old('nr_doors'), array(
                                'class' => 'form-control',
                                'placeholder' =>Lang::get('messages.nr_doors_of_vehicle')));
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('air_condition', Lang::get('messages.air_condition').'*', array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::radio('air_condition', '1', true) }} {{Lang::get('messages.yes')}}
                {{ Form::radio('air_condition', '0') }}{{Lang::get('messages.no')}}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('purchase_price', Lang::get('messages.purchase_price'), array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::text('purchase_price', Input::old('purchase_price'), array(                   
                                'class' => 'form-control',
                                'placeholder'=>Lang::get('messages.purchase_price'))) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('comment', Lang::get('messages.comment'), array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Form::textarea('comment',Input::old('comment'), array('class' => 'form-control',
                        'placeholder' =>Lang::get('messages.write_comment'))) }}
                <br/>
                <div id="validation-div" class="">

                </div>
            </div>
        </div> 
        {{ Form::submit(Lang::get('messages.save_btn'), array('class' => 'btn btn-success btn-line')) }}
        <input type="button" value="{{ Lang::get('messages.cancel_btn')}}" class="btn btn-danger btn-line" 
               onClick="history.go(-1);
                       return true;">
        {{ Form::close() }}
    </div>
</div> 
@stop
